<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="isg3.domain.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/estilo.css" />
</head>
<body>
<img src="./images/cabecera2.jpg" alt="FomentoLectura"/>
	<% 	String idConcur = request.getParameter("oidConcur");
		String idUser = request.getParameter("oidUser");
		Administrador ad = new Administrador();
		ad.anyadirUsuarioAConcurso(idConcur,idUser);
	
		String user = (String)session.getAttribute("session.user");
		LoginManager lm = LoginManager.getInstance();
		Usuario u = lm.getUsuario(user);
		String tipo = u.getTipo();
		if(tipo.equals("participante")){
	%>
		<jsp:forward page="participacion.jsp"/>
	<%}else{%>
		<jsp:forward page="voluntariado.jsp"/>
	<%}%>
	
</body>
</html>